<?php

class Jpa extends ModelBase
{
	public static  function insert ($nombreTabla,$columnas,$valores)
	{
		$col = "";
		for ($i = 0 ; count($columnas) ; $i++)
		{
			$col = $col +","+ $columnas[$
		$val = "";
		for ($i = 0 ; count($valores) ; $i++)
		{
			$val = $val +","+ $valores[$i];
 		}

		$sql ="INSERT INTO %s (%s) VALUES (%s) ",$nombreTabla,$col,$val; 
		$consulta = $this->db->query($sql);
	}

}
?>
